#ifndef FULLSCREENTOGGLEACTION_H
#define FULLSCREENTOGGLEACTION_H



#include "biaction.h"

namespace stitch
{
class FullScreenToggleAction : public BiAction
{
    Q_OBJECT
public:
    FullScreenToggleAction(QWidget *p_window,
                           const QIcon &p_icon,
                           QObject *p_parent = nullptr);

signals:
    bool fullScreenToggled(bool p_fullScreen);

protected:
    bool eventFilter(QObject *p_object, QEvent *p_event) Q_DECL_OVERRIDE;

private:
    static void setWindowFullScreen(QWidget *p_window, bool p_set);

    QWidget *m_window = nullptr;
};
}

#endif // FULLSCREENTOGGLEACTION_H
